<?php
// Make sure _PATH_ is defined, otherwise when we pull in the config
// file it will have no idea where to find our directories
if (!defined("_PATH_")) {define("_PATH_",dirname(__FILE__));}
// Constants Files
require_once(_PATH_.DIRECTORY_SEPARATOR."config".DIRECTORY_SEPARATOR."const.php");
// Autoload
require_once _CORE_PATH_.DIRECTORY_SEPARATOR."includes".DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."Fox.php";
Fox::instance()->initialize();
// Ressources
use Fox\Ressources\Collection, Fox\Ressources\Script, Fox\Ressources\Style;
Fox\Ressources::instance()->register(
	new Style(_CORE_ASSETS_.'css/standard.css'),
	new Style(_CORE_ASSETS_.'css/buttons.css'),
	new Style(_ASSETS_.'css/style.css'),
	// Jquery
	new Collection('jquery',array(
		'jquery.js',
		'jquery-metadata.js'
		),_CORE_ASSETS_."js/jquery/min/",array(Collection::PARAM_CACHE => true)),
	new Collection('foxjs',array(
		'jquery-fox.js',
		'fox/utilities.js',
		'fox/ui/grid.js',
		'fox.js'
		),_CORE_ASSETS_.'js/',array(Collection::PARAM_CACHE => false)),
	// Local Script
	new Script(_ASSETS_."js/custom.js"),
	new Script(_ASSETS_."js/google.analytics.js")
);